export const propList = [
  {
    label: "名称",
    prop: "name",
    width: 240,
  },


  {
    label: "描述",
    prop: "desc",
  },

  {
    label: "排序",
    prop: "sort",
    width: 120,
  },
  {
    label: "业务类型",
    prop: "recharge_type_text",
    width: 160,
  },

  {
    label: "创建时间",
    prop: "created_time",
    width: 160,
  },
  {
    label: "修改时间",
    prop: "updated_time",
    width: 160,
  },
  {
    label: "操作",
    slotName: "op",
    fixed: "right",
    width: 260,
  },
];
export const formItems = [
  {
    prop: "name",
    label: "名称",
    placeholder: "请输入名称",
    lg: 6,
    type: "input",
    otherOptions: {},
  },
  {
    prop: "recharge_type",
    label: "业务类型",
    placeholder: "请选择",
    options: [
      {
        key: 1,
        value: '话费'
      },
      {
        key: 2,
        value: '流量'
      }
    ],
    lg: 6,
    type: "select",
    otherOptions: {},
  },
  {
    prop: "created_time",
    label: "创建时间",
    lg: 10,
    type: "datetimerange",
    valueFormat: "x",
    otherOptions: {
      defaultTime: [
        new Date(2000, 1, 1, 0, 0, 0),
        new Date(2000, 1, 1, 23, 59, 59),
      ],
    },
  },
];
export const dialogConfig = {
  title: "产品分类",
  formConfig: {
    labelWidth: "88px",
    colLayout: { span: 24 },
    formData: {},
    formItems: [
      {
        label: "名称",
        prop: "name",
        type: "input",
        placeholder: "请输入名称",
      },
      {
        label: "描述",
        prop: "desc",
        type: "textarea",
        placeholder: "请输入",
      },
      {
        prop: "recharge_type",
        label: "业务类型",
        placeholder: "请选择",
        options: [
          {
            key: 1,
            value: '话费'
          },
          {
            key: 2,
            value: '流量'
          }
        ],
        width: '200px',
        defaultValue: 2,
        type: "select",
        otherOptions: {},
      },
      {
        label: "排序(越小越靠前)",
        prop: "sort",
        precision: 0,
        type: "inputNumber",
        placeholder: "请输入(越小越靠前)",
        // min: 0,
      },
    ],
    formDataRules: {
      name: [{ required: true, message: "请输入", trigger: "blur" }],
      // re: [{ required: true, message: "请输入", trigger: "blur" }],
      // recharge_type: [{ required: true, message: "请选择", trigger: "blur" }],
    },
  },
};
